import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/portal-common/store/user'
import permission from '@/portal-common/store/permission'
import app from './modules/common/app'
import errorLog from './modules/common/errorLog'
import tagsView from './modules/common/tagsView'
import commonData from './modules/common/commonData'
import getters from './getters'
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    errorLog,
    permission,
    tagsView,
    user,
    commonData
  },
  getters
})

export default store
